Game Native List | FiveM Style - JayMontana36/LuaPlugin-GTAV GitHub Wiki

See "./__Internal/0A_Natives-*.lua" for a current up to date list of natives; some additional/other native (re)implementations can be found in "./__libs"; old page below.

Will update down below soon enough with some tips and tricks (and documentation stuff) for more "complex" natives uses; currently it's a bit of a useless example for a simple native, and an example that is no longer really relevant anymore thanks to the advancements made with the new natives lib generator that I recently pioneered to replace the old/legacy Function (Re)Mapper and internal "FiveMifying".

See https://github.com/JayMontana36/LuaPlugin-GTAV/wiki/Native:-GetShapeTestResult instead for now.


Literally just a list of all of the FiveM Style Game Native Function Calls available in LuaPlugin for reference, mainly due to some differences here and there between the names in Lua Plugin vs the names in FiveM Native Reference, as well as other places, primarily due to other places having and using updated/new names. You can cross-reference the FiveM Native Reference with this list in order to help you find the game native functions that you are (or were) looking for or wanting to use but couldn't find due to function name differences.

Example:

https://docs.fivem.net/natives/?_0x005622AEBC33ACA9

The native WaypointRecordingGetSpeedAtPoint from the FiveM Native Reference is using new/updated names while Lua Plugin still has/uses some old/outdated names, but if you look, you may see in some cases "old name" documented on/in the native reference which can in some cases sometimes work and be used within Lua Plugin, and if not then well you can also see/spot the native "hash" which is your last method of calling this native.

Because WaypointRecordingGetSpeedAtPoint has no old names that work with Lua Plugin and/but does have a hash that you can use, to call this native, you would instead use _0x005622aebc33aca9 in place of WaypointRecordingGetSpeedAtPoint.

-- WAYPOINT_RECORDING_GET_SPEED_AT_POINT
local retval --[ number ](/JayMontana36/LuaPlugin-GTAV/wiki/-number-) =
	WaypointRecordingGetSpeedAtPoint(
		name --[ string ](/JayMontana36/LuaPlugin-GTAV/wiki/-string-), 
		point --[ integer ](/JayMontana36/LuaPlugin-GTAV/wiki/-integer-)
	)
-- WAYPOINT_RECORDING_GET_SPEED_AT_POINT
local retval --[ number ](/JayMontana36/LuaPlugin-GTAV/wiki/-number-) =
	_0x005622aebc33aca9(
		name --[ string ](/JayMontana36/LuaPlugin-GTAV/wiki/-string-), 
		point --[ integer ](/JayMontana36/LuaPlugin-GTAV/wiki/-integer-)
	)